Option Explicit

Private Sub createMdTableBtn_Click()
    If rangeBox.value = "" Then
        MsgBox "please select range"
        Exit Sub
    End If

    ' 1. 确认换行符
    Dim lineBreak As String
    If lineBreakLf.value Then
        lineBreak = vbLf
    Else
        lineBreak = vbCrLf
    End If

    ' 2. 生成结果，并写入输入框
    mdTableInput.text = UtilMarkdown.transRangeToMdTableTxt( _
        Range(rangeBox.value), _
        secondIsSplitRow:=secondIsSplitRowCheckbox.value, _
        lineBreak:=lineBreak)
End Sub
